import { LvTimeFormat } from '../core/api';

export interface LvPresetRanges {
  [key: string]: Date[] | (() => Date[]);
}

export interface LvDateTimeOption {
  format?: LvTimeFormat;
  disabledHour?: (hour: number, ...args: any[]) => boolean;
  disabledMinute?: (hour: number, minute: number, ...args: any[]) => boolean;
  disabledSecond?: (hour: number, minute: number, second: number, ...args: any[]) => boolean;
}

export interface LvYearsOperate {
  show?: boolean; // 是否显示
  disableChange?: boolean; // 是否禁用更改
}

export const DEFAULT_YEARSOPERATE: LvYearsOperate = { show: true, disableChange: false };
